<?= $this->Html->script('http://maps.google.com/maps/api/js?sensor=true&amp;language=sr', array('inline'=>false)) ?>
<?= $this->Html->script('jquery-gmaps-1.0.0.min', array('inline'=>false)) ?>
<?= $this->Html->css('jquery-gmaps.min', null, array('inline'=>false)) ?>
<?= $this->Html->css('jquery-gmaps-print.min', null, array('inline'=>false, 'media'=>'print')) ?>


<style type="text/css">
strong{display:block;float:left;clear:both;width:70px;text-align:right;margin-right:5px;color:#ccc}
.value{float:left;width:200px;margin-bottom:10px}
h2{margin-top:30px}
.contact-form fieldset{border:1px solid #ccc;border-radius:5px;padding:10px 20px 20px;margin:20px 0}
.contact-form legend{color:#bbb;padding:0 5px}
.contact-form input[type=text],.contact-form textarea{display:block;width:290px;margin:5px 0}
.contact-form textarea{height:75px}
#KontaktCaptcha{width:100px;float:left}
</style>

<div id="map" class="left">
</div>

<div class="left" style="margin-left:10px;width:300px">
	<h1>Eurogel d.o.o.</h1>

	<strong>Adresa:</strong> <span class="value"><?= $settings['Adresa'] ?><br><?= $settings['Grad'] ?></span>
	<strong>Telefon:</strong> <span class="value"><?= $settings['Telefon'] ?></span>
	<strong>Mobilni:</strong> <span class="value"><?= $settings['Mobilni'] ?></span>
	<strong>E-Mail:</strong> <span class="value"><a href="mainto:<?= $settings['E-Mail'] ?>"><?= $settings['E-Mail'] ?></a></span>
	
	<br clear="all">
	<?= $this->Form->create('Kontakt', array('class'=>'contact-form')) ?>
		<h2>Pišite nam</h2>
		<?= $this->Form->input('email', array('placeholder'=>'E-Mail', 'label'=>false)) ?>
		<?= $this->Form->input('name', array('placeholder'=>'Ime i Prezime', 'label'=>false)) ?>
		<?= $this->Form->textarea('message', array('placeholder'=>'Poruka')) ?>
		<?= $this->App->captcha(); ?>
		
		<?= $this->Form->submit('Pošalji', array('class'=>'right')) ?>
		
	<?= $this->Form->end(null) ?>
</div>
<br clear="all">
<script type="text/javascript">
$(function(){
	$('#map').GMap({
		position: {lat: 44.850173, lng: 20.353385},
		size: {width:400, height: 400},
		zoom: 15,
		language: 'sr',
		language_strings: {
			Get_Directions:		"Kako doći do nas &raquo;",
			Directions:		"Kako doći do nas" ,
			Search:			"Traži",
			Your_Address:		"Vaša adresa",
			Searching:		"Pretraga",
			Search_Results:		"Rezultati pretrage",
			Empty:			"Nema rezultata",
			Reset:			"Poništi",
			Route_Impossible:	"Odabrana ruta nije izvodljiva"
		}
	});
});
</script>